package edu.ar.modulo3.servlet; 

import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.*;
import javax.servlet.http.*;

public class ServletError extends HttpServlet {
	
	private static final long serialVersionUID = 1L;

	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		doPost(request,response);
	}
	
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		PrintWriter out=response.getWriter();
		out.print("<HTML>");
		out.print("<HEAD>");
		out.print("<TITLE>Error en el loggin</TITLE>");
		out.print("</HEAD>");
		out.print("<BODY>");
		out.print("<P>"+" Los datos de usuario y Password no son correctos"+"</P>");
		out.print("<a href=\"index.jsp\">Seguir Comprando</a>");
		out.print("</BODY>");
		out.print("</HTML>");
	}
}